package com.wangchao.administrator.zenmechi.ui.searchactivity;

import android.content.Context;
import android.widget.Adapter;

import com.wangchao.administrator.zenmechi.bean.caipudetailbean.CaipuDetail;
import com.wangchao.administrator.zenmechi.bean.merchantbean.MerchantBean;
import com.wangchao.administrator.zenmechi.bean.productbean.ProductBean;
import com.wangchao.administrator.zenmechi.db.SearchHistory;

import java.util.List;
import java.util.Map;

import rx.Subscriber;

/**
 * Created by Administrator on 2016/10/18.
 */
public class SearchActivityContract {

    public interface View{
        public void showNone();
        public void hideNone();
        public String getSearchType();
        public String getSearchName();
        public void initSearchCaipu(Adapter adapter);
    }

    public interface Model{
        public void searchHistory(Subscriber<List<SearchHistory>> subscriber,Context context);
        public void searchForCaipu(Map<String,String> map, Subscriber<CaipuDetail> subscriber);
        public void searchForProduct(Map<String,String> map, Subscriber<ProductBean> subscriber);
        public void searchMerchant(Map<String,String> map, Subscriber<MerchantBean> subscriber);
    }

    public interface Presenter{
        public void searchHistory(Context context);
        public void search(Context context);
        public void searchForCaipu(Context context);
        public void searchForProduct(Context context);
        public void searchMerchant(Context context);
    }

}
